<%-- 
    Document   : index
    Created on : 12.11.2011, 17:09:52
    Author     : xDrake
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
<%@ page trimDirectiveWhitespaces="true"%>

<jsp:useBean id="manager" class="main.indexBean" scope="request">
    <c:set target="${manager}" property="request" value="${pageContext.request}" />
    <c:set target="${manager}" property="response" value="${pageContext.response}" />
    <c:set target="${manager}" property="session" value="${pageContext.session}" />
</jsp:useBean>  

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="favicon.ico" rel="icon" type="image/x-icon" />
        <link rel="stylesheet" href="style.css" type="text/css" />
        <script type="text/javascript" src="script/jquery-1.7.min.js"></script>
        <script type="text/javascript" src="script/script.js" ></script>
        <title>JSP Page</title>
    </head>
    <body>

        <c:if test="${manager.load}">
            
            <a href="index.jsp"><h1>PhoneBook v0.03 Alpha</h1></a>
            <form id="form" method="POST">
                ${manager.usersTable}
                <input id="doDelete" type="hidden" name="doDelete" value="false" />
            </form>
        </c:if>
    </body>
</html>
